package com.nbsaas.sample.user.rest.convert;

import com.nbsaas.sample.entity.user.UserAddress;
import com.nbsaas.sample.user.api.domain.response.UserAddressResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;

/**
* 实体对象转化成响应对象
*/

public class UserAddressResponseConvert  implements Converter<UserAddressResponse,UserAddress> {

    @Override
    public UserAddressResponse convert(UserAddress source) {
        UserAddressResponse  result = new  UserAddressResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

